package com.gitee.neuray.security.mail.feign;

import com.gitee.neuray.security.common.msg.ObjectRestResponse;
import com.gitee.neuray.security.mail.constants.MailApiConstants;
import com.gitee.neuray.security.mail.hystrix.MailSeriviceFallback;
import com.gitee.neuray.security.mail.vo.SysMailSourceVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = MailApiConstants.RIBBON_ADDRESS,fallback = MailSeriviceFallback.class)
public interface MailServiceFeignClient {
    //添加邮件
     @RequestMapping(value="/api/mail/addMail",method = RequestMethod.POST)
     ObjectRestResponse addMail(SysMailSourceVo vo);

     //发送邮件
    @RequestMapping(value="/api/mail/sendTimerMail",method = RequestMethod.POST)
    ObjectRestResponse sendTimerMail();
    //生日邮件
    @RequestMapping(value="/api/mail/addBirthDayTimerMail",method = RequestMethod.POST)
    ObjectRestResponse addBirthDayTimerMail();
}
